package com.lzs.DAO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lzs.PO.Role;
import com.lzs.PO.User;

public interface UserDAO {

	public User getUser(@Param("username") String username, @Param("password") String password);

	public List<User> findUserList(@Param("keyword") String keyword);

	public List<User> findUserPagelist(@Param("keyword") String keyword, @Param("startIndex") int startIndex,
			@Param("pageSize") Integer pageSize);

	public void addUser(User user);

	public void addUserRole(Map<String, Object> map);

	public long countUserById(@Param("userid")Integer userid);

	public User findUserRoleById(@Param("userid")Integer userid);

	public void updateUser(User user);

	public void deleteUserRoleById(Map<String, Object> map);

	public void deleteUser(@Param("userid")Integer userid);
}
